package site

type frSiteAreaEnum = string

type frSiteAreaStruct struct {
	NF  frSiteAreaEnum
	OIL frSiteAreaEnum
}

// 肥滚区域区域编码枚举
var FrSiteAreaEnum = &frSiteAreaStruct{
	NF:  "NF",
	OIL: "OIL",
}

var frSiteAreaMap = map[frSiteAreaEnum]string{
	FrSiteAreaEnum.NF:  "农夫区",
	FrSiteAreaEnum.OIL: "食用油区",
}

//获取肥滚区域区域编码枚举对应中文描述
func GetFrSiteAreaDesc(code frSiteAreaEnum) string {
	if mode, ok := frSiteAreaMap[code]; ok {
		return mode
	} else {
		return "未知类型"
	}
}

type frSiteTaskRuleEnum = string
type frSiteTaskRuleStruct struct {
	SINGLE_TASK frSiteTaskRuleEnum
	MULTI_TASK  frSiteTaskRuleEnum
}

// 肥滚区域位置任务设置枚举
var FrSiteTaskRuleEnum = &frSiteTaskRuleStruct{
	SINGLE_TASK: "SINGLE_TASK",
	MULTI_TASK:  "MULTI_TASK",
}
var frSiteTaskRuleMap = map[frSiteTaskRuleEnum]string{
	FrSiteTaskRuleEnum.SINGLE_TASK: "单任务位置",
	FrSiteTaskRuleEnum.MULTI_TASK:  "多任务位置",
}

//获取肥滚区域位置任务设置对应中文描述
func GetFrSiteTaskRuleDesc(code frSiteTaskRuleEnum) string {
	if mode, ok := frSiteAreaMap[code]; ok {
		return mode
	} else {
		return "未知类型"
	}
}
